# Author: HZT
# Date: 2023/11/7
import time
import page
from base.base import Base


class WebGlKm(Base):
    # 编辑面额
    def gl_km_input_bjme(self, me):
        self.base_input(page.web_gl_km_bjme, me)

    # 编辑汇率
    def gl_km_input_bjhl(self, hl):
        self.base_input(page.web_gl_km_bjhl, hl)

    # 点击编辑提交
    def gl_km_click_bjtj(self):
        self.base_click(page.web_gl_km_bjtj)

    # 返回卡片id列表元素
    def gl_km_get_kpid(self):
        return self.base_find(page.web_gl_km_kpidlb)

    # 点击卡片id对应编辑按钮
    def gl_km_click_bj(self, card_id):
        self.base_click(page.create_web_gl_km_bj_selector(card_id))

    # 点击卡片id对应手动成功按钮
    def gl_km_click_sdcg(self, card_id):
        self.base_click(page.create_web_gl_km_sdcg_selector(card_id))

    # 点击卡片id对应关闭订单按钮
    def gl_km_click_gbdd(self, card_id):
        self.base_click(page.create_web_gl_km_gbdd_selector(card_id))

    # 点击成功提交
    def gl_km_click_cgtj(self):
        self.base_click(page.web_gl_km_cgtj)

    # 点击操作完成
    def gl_km_click_czwc(self):
        self.base_click(page.web_gl_km_czwc)
